package com.ny.demo428;

public class WeixinPay extends Pay {
    double n = 100;

    @Override
    public void text(double money) {
        if(n<money){
            System.out.println("你的余额不足，请选择其他支付方式");

        }
        else {
            System.out.println("你消费了"+money);
            n = n- money;
            System.out.println("你的余额为"+n);
        }
    }
}
